package com.yc.cloud.openai.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * AI绘画记录
 *
 * @author Yancy
 * @since 2024-10-30
 */
@Data
@TableName("image_record")
@ApiModel(value = "ImageRecord对象", description = "AI绘画记录")
public class ImageRecord implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("任务UUID")
    @TableField("uuid")
    private String uuid;

    @ApiModelProperty("客户端ID")
    @TableField("client_id")
    private String clientId;

    @ApiModelProperty("提示词")
    @TableField("prompt")
    private String prompt;

    @ApiModelProperty("类型,1->文生图")
    @TableField("type")
    private String type;

    @ApiModelProperty("其他参数信息")
    @TableField("note")
    private String note;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField("status")
    private String status;

    @TableField("provider")
    private String provider;


    public static final String UUID = "uuid";

    public static final String CLIENT_ID = "client_id";

    public static final String PROMPT = "prompt";

    public static final String TYPE = "type";

    public static final String NOTE = "note";

    public static final String STATUS = "status";

    public static final String PROVIDER = "provider";

}
